package com.shop.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.shop.pojo.wms.Wms_Purchase;
import com.shop.pojo.wms.Wms_Purchase_Detail;
import com.shop.utils.CaiGouVo;
import com.shop.utils.LayuiUtils;
import com.shop.utils.R;

import java.util.List;

/**
 * 采购需求-李贝贝
 */
public interface Wms_Purchase_Detail_Service extends IService<Wms_Purchase_Detail> {

    /**
     * 显示所有采购需求
     */
    LayuiUtils<Wms_Purchase_Detail> find_all_pruchase_detail(Page<Wms_Purchase_Detail> pages,Wms_Purchase_Detail wms_purchase_detail);

    /**
     * 新增采购需求
     * @param wms_purchase_detail
     * @return
     */
    R insert_purchase_detial(Wms_Purchase_Detail wms_purchase_detail);

    /**
     * 删除采购需求
     * @param id
     * @return
     */
    R delete_purchase_detial(List<Long> id);

    /**
     * 修改采购需求
     * @param wms_purchase_detail
     * @return
     */
    R update_purchase_detial(Wms_Purchase_Detail wms_purchase_detail);

    /**
     * 查询采购单的状态   查询条件为新建0 已分配1
     * @return
     */
    List<Wms_Purchase> find_admin_Status_Ling_All();


}
